package com.springcloud.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.springcloud.commom.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author hzl
 * @date 2024-07-30 15:48:28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_order")
public class Order extends BaseEntity {

    /**
     *
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 商品id
     */
    private String productId;

    /**
     * 订单数量
     */
    private Integer orderNum;

}
